import java.awt.*;

public class Main{
	public static void main(String[] args){
		Triangle t = new Triangle(new Point(0,0),new Point(1,1), new Point(2,2));
		ColoredTriangle ct = new ColoredTriangle(Color.red, new Point(0,0), new Point(1,1), new Point(2,2));
		System.out.println(t.equals(ct));
		System.out.println(ct.equals(t));
	}
}
